package com.ykdl.member.kid.beans;

import java.io.Serializable;
import java.util.List;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;
/**
 * 解析门店在线优惠券bean
 * @author jiafeiyu
 *
 */
public class StoreOnLineCouponBean implements IJsonParser, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4462167144453599460L;
	private int next_cursor;
	private int total_number;
	private List<OnLineCouponBean> coupon_list;
	private StoreBean store;
	private String desc ;
	private String error ;
	
	public int getNext_cursor() {
		return next_cursor;
	}

	public void setNext_cursor(int next_cursor) {
		this.next_cursor = next_cursor;
	}

	public int getTotal_number() {
		return total_number;
	}

	public void setTotal_number(int total_number) {
		this.total_number = total_number;
	}

	public List<OnLineCouponBean> getCoupon_list() {
		return coupon_list;
	}

	public void setCoupon_list(List<OnLineCouponBean> coupon_list) {
		this.coupon_list = coupon_list;
	}

	public StoreBean getStore() {
		return store;
	}

	public void setStore(StoreBean store) {
		this.store = store;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	@Override
	public IJsonParser parse(String json) throws Exception {
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, StoreOnLineCouponBean.class);
		}
		return null;
	}

}
